// 存放状态
const state = {
  routes: {
    stateOptions: [
      { label: "否", value: "0" },
      { label: "是", value: "1" }
    ]
  },
  rules: {
    username: [
      { required: true, message: "请输入用户账号", trigger: "blur" }
    ],
    nickName: [
      { required: true, message: "请输入用户名称", trigger: "blur" }
    ],
    password: [
      { required: true, message: "请输入用户密码", trigger: "blur" }
    ]
  }
};

// 更改state中状态的逻辑，同步操作
const mutations = {};

// 提交mutation，异步操作
const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
